package dao;

import bean.dto.ExpenseTypePage;
import bean.pojo.ExpenseType;
import bean.vo.ExpenseTypeOption;

import java.util.List;

/**
 * dao
 * User: xlh
 * Date: 2024/12/17 9:56
 * motto:推到高塔
 * Description:
 * Version: V1.0
 */
public interface ExpenseTypeDao {

    List<ExpenseType> findByPage(ExpenseTypePage expenseTypePage);

    Long findByTotal(ExpenseTypePage expenseTypePage);

    List<ExpenseTypeOption> findAllList();

    int updateById(ExpenseType expenseType);

    int insert(ExpenseType expenseType);

    int deleteById(Integer typeId);

    int createType(String typeName);
}
